<me:ChartExBase x:Class="WPFExcelReport.Chart.ChartEx0008"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"  
       xmlns:chart="clr-namespace:De.TorstenMandelkow.MetroChart;assembly=De.TorstenMandelkow.MetroChart" 
             xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                xmlns:me="clr-namespace:WPFExcelReport.Chart"
        Loaded="ChartEx_Loaded">
    <me:ChartExBase.Resources>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:StringToBrushConverter x:Key="StringToBrushConverter" />
    </me:ChartExBase.Resources>
    <chart:PieChart Grid.Row="1" 
           Style="{StaticResource ChartStyleVariableSize}"
                IsSleep="{Binding IsSleep}" 
            ChartTitle="{Binding ChartTitle}"    
            ChartSubTitle="{Binding ChartSubTitle}" 
            Palette="{Binding Path=SelectedPalette.Value}"
            FontSize="{Binding Path=SelectedFontSize}"
            IsRowColumnSwitched="{Binding Path=IsRowColumnSwitched}"
            ChartTitleVisibility="{Binding Path=IsTitleVisible, Converter={StaticResource bv}}"
            ChartLegendVisibility="{Binding Path=IsLegendVisible, Converter={StaticResource bv}}"
            ToolTipFormat="{Binding Path=ToolTipFormat}" 
            Foreground="{Binding Path=Foreground}" 
            Background="{Binding Path=Background}"
            SelectedItem="{Binding Path=SelectedItem, Mode=TwoWay}"
            SelectedBrush="{Binding Path=SelectedBrush, Converter={StaticResource StringToBrushConverter}}"    
            SeriesSource="{Binding Path=Series}">
        <chart:PieChart.SeriesTemplate>
            <DataTemplate>
                <chart:ChartSeries 
                    SeriesTitle="{Binding Path=SeriesDisplayName}" 
                     DisplayMember="Category"  ValueMember="Number" 
                    ItemsSource="{Binding Path=Items}" />
            </DataTemplate>
        </chart:PieChart.SeriesTemplate>
    </chart:PieChart>
</me:ChartExBase>
